package com.wxzz.elearing.course.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wxzz.elearning.common.dto.FeignWxUserDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class WxUserCurriculumVo extends FeignWxUserDto {

    //=============累计学习情况================

    @ApiModelProperty(value = "学习时长")
    private double studyTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "学习时长更新时间")
    private LocalDateTime studyTimeUpdateTime;

    @ApiModelProperty(value = "完成课时")
    private Long finishClass;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "完成课时更新时间")
    private LocalDateTime finishClassUpdateTime;

    //============当前课程学习情况=================

    @ApiModelProperty(value = "课程学习时长")
    private double curriculumStudyTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始学习时间")
    private LocalDateTime studyStartTime;

    @ApiModelProperty(value = "学习进度")
    private BigDecimal studySchedule;

    //=============测试情况======================

    @ApiModelProperty(value = "测试次数")
    private Integer testNum = 0;

    @ApiModelProperty(value = "未通过次数")
    private Integer unPassNum = 0;

    @ApiModelProperty(value = "通过率")
    private double passRate = 0;

    //============星级===================

    @ApiModelProperty(value = "星级")
    private Integer startLevel = 0;

    //============每日学习时长记录==============

    @ApiModelProperty(value = "每日对应的学习时长")
    private List<Double> studyTime4days;

    @ApiModelProperty(value = "每日的学习日期")
    private List<String> studyDays;


}
